﻿#include <stdio.h>
#include <Windows.h>
#include <time.h>
#include "thuvien.h"
#include <conio.h>
void animation();
void huongdan() //Hàm in ra màn hình các câu hướng dẫn
{
	animation();
	long begin=clock();
	while (clock()-begin<500);
	printf("\n1. An phim SPACEBAR de mo o .\n");
	while (clock()-begin<1000);
	printf("\n2. An phim ENTER de dat co vao o ban nghi la co BOM.\n");
	while (clock()-begin<1500);
	printf("\n3. An phim SPACEBAR vao o da dat co de huy viec dat co.\n");
	while (clock()-begin<2000);
	printf("\n4. An phim ESC de tam dung tro choi.\n");
	while (clock()-begin<2500);
	printf("\n5. Ban se THANG khi dat co dung tat ca cac vi tri co BOM.\n");
	while (clock()-begin<3000);
	printf("\n6. Ban se THUA neu mo phai o co BOM.\n");
	while (clock()-begin<3500);
	printf("\nAn phim bat ki de tro ve MENU\n");
	getch();
	menu();
}
void animation()

{
	system("color 1b");
	long begin;
	for (int i=1;i<=3;i++)
	{
	system("cls");
	printf("\nHow to play: ");
	printf("\n\n\n\n\n\n");
	begin=clock();
	printf("       ************                 *************             \n");
	printf("    ***              ***   *   ***               ***          \n");
	printf(" ***                       *                        ***		\n");
	printf("**                         *                          **  \n");
	printf("**                         *                          **  \n");
	printf("**                         *                          **  \n");
	printf("**                         *                          **  \n");
	printf("**                         *                          **  \n");
	printf("**                         *                          **  \n");
	printf("**                         *                          **  \n");
	printf("**                         *                          **  \n");
	printf("**                         *                          **  \n");
	printf("**                         *                          **  \n");
	printf("**                         *                          **  \n");
	printf("**                         *                          **  \n");
	printf("**                         *                          **  \n");
	printf("**                         *                          **  \n");
	printf("**                         *                          **  \n");
	printf("**   ******                *                ******    **  \n");
	printf(" **        ******          *         *******         **  \n");
	printf("                 ********************                      \n");
	while(clock()-begin<100);
	//printf("                    ***************                          \n");


	system("cls");
	printf("\nHow to play: ");
	printf("\n\n\n");
	begin=clock();
	printf("        ******                                                     \n");
	printf("     ***       *****                                                   \n");
	printf("   **               *****                                               \n");
	printf("   **                    ***        *************             \n");
	printf("   **                      *   ***               ***          \n");
	printf(" ****                      *                        ***		\n");
	printf("** **                      *                          **  \n");
	printf("** **                      *                          **  \n");
	printf("** **                      *                          **  \n");
	printf("** **                      *                          **  \n");
	printf("** **                      *                          **  \n");
	printf("** **                      *                          **  \n");
	printf("** **                      *                          **  \n");
	printf("** **                      *                          **  \n");
	printf("** **                      *                          **  \n");
	printf("** **                      *                          **  \n");
	printf("** **                      *                          **  \n");
	printf("** **                      *                          **  \n");
	printf("**   ****                  *                          **  \n");
	printf("**        ****             *                          **  \n");
	printf("**             ****        *                          **  \n");
	printf("**   ******        ****    *                ******    **  \n");
	printf(" **        ******      *****         *******         **  \n");
	printf("                 ********************                      \n");
	while(clock()-begin<100);


	system("cls");
	printf("\nHow to play: ");
	printf("\n");
	begin=clock();
	printf("              *******                                       \n");
	printf("              **     ****                                  \n");
	printf("              **         *                              \n");
	printf("              **           *                            \n");
	printf("              **           *                           \n");
	printf("       *********           *        *************            \n");
	printf("    ***       **           *   ***               ***          \n");
	printf(" ***          **           *                        ***		\n");
	printf("**            **           *                          **  \n");
	printf("**            **           *                          **  \n");
	printf("**            **           *                          **  \n");
	printf("**            **           *                          **  \n");
	printf("**            **           *                          **  \n");
	printf("**            **           *                          **  \n");
	printf("**            **           *                          **  \n");
	printf("**            **           *                          **  \n");
	printf("**            **           *                          **  \n");
	printf("**            **           *                          **  \n");
	printf("**              **         *                          **  \n");
	printf("**                **       *                          **  \n");
	printf("**                   *     *                          **  \n");
	printf("**                     *   *                          **  \n");
	printf("**                      *  *                          **  \n");
	printf("**   ******              ***                ******    **  \n");
	printf(" **        ******          *         *******         **  \n");
	printf("                 ********************                      \n");
	while(clock()-begin<100);

	system("cls");
	printf("\nHow to play: ");
	printf("\n");
	begin=clock();
	printf("                                  *******                                   \n");
	printf("                              ****     **                                \n");
	printf("                            *          **                   \n");
	printf("                           *           **                 \n");
	printf("                           *           **                \n");
	printf("       ************        *           **********               \n");
	printf("    ***              ***   *           **        ***          \n");
	printf(" ***                       *           **           ***		\n");
	printf("**                         *           **             **  \n");
	printf("**                         *           **             **  \n");
	printf("**                         *           **             **  \n");
	printf("**                         *           **             **  \n");
	printf("**                         *           **             **  \n");
	printf("**                         *           **             **  \n");
	printf("**                         *           **             **  \n");
	printf("**                         *           **             **  \n");
	printf("**                         *           **             **  \n");
	printf("**                         *           **             **  \n");
	printf("**                         *         **               **  \n");
	printf("**                         *       **                 **  \n");
	printf("**                         *      *                   **  \n");
	printf("**                         *    *                     **  \n");
	printf("**                         *   *                      **  \n");
	printf("**   ******                *  *             ******    **  \n");
	printf(" **        ******          * *       *******         **  \n");
	printf("                 ************  ******                      \n");
	while(clock()-begin<100);

	system("cls");
	printf("\nHow to play: ");
	printf("\n\n");
	begin=clock();
	printf("                                         ******                       \n");
	printf("                                    ****        ***                  \n");
	printf("                              *****                **                                   \n");
	printf("       ************        ***                     **   \n");
	printf("    ***              ***   *                       **      \n");
	printf(" ***                       *                       ****		\n");
	printf("**                         *                       ** **  \n");
	printf("**                         *                       ** **  \n");
	printf("**                         *                       ** **  \n");
	printf("**                         *                       ** **  \n");
	printf("**                         *                       ** **  \n");
	printf("**                         *                       ** **  \n");
	printf("**                         *                       ** **  \n");
	printf("**                         *                       ** **  \n");
	printf("**                         *                       ** **  \n");
	printf("**                         *                       ** **  \n");
	printf("**                         *                       ** **  \n");
	printf("**                         *                       ** **  \n");
	printf("**                         *                  ****    **  \n");
	printf("**                         *               ****       **  \n");
	printf("**                         *           ****           **  \n");
	printf("**   ******                *      ****      ******    **  \n");
	printf(" **        ******          ******    *******         **  \n");
	printf("                 ********************                      \n");
	while(clock()-begin<100);
	}


}